package com.xzy.fruitmall.impl;

import com.xzy.fruitmall.CustomerService;
import com.xzy.fruitmall.entity.CustomerInfo;
import com.xzy.fruitmall.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    private CustomerMapper customerMapper;
    @Override

    public List<CustomerInfo> findAllCustomer() {
        System.out.println("test");
        return customerMapper.findAllCustomer();
    }

    @Override
    public int logOnCustomer(String name, String pass) {
        return customerMapper.logOnCustomer(name,pass);
    }
}
